import request from '../../utils/request.js'
const state={
	homeData:{}
}

const actions={
	async getHomeData({commit}){
		const homeData=await request('/getIndexData')
		commit('GET_HOME_DATA',homeData)
	}
}

const mutations={
	GET_HOME_DATA(state,homeData){
		state.homeData=homeData
	}
}

export default {
	namespaced:true,
	state,
	actions,
	mutations
}